<?php
class Secure_area extends CI_Controller
{
	public function __construct(){
		parent::__construct();
		if(!isset($_SESSION)): session_start(); endif;
		$is_logged_in = isset($_SESSION['admin_details']['is_logged_in'])? $_SESSION['admin_details']['is_logged_in']:FALSE;
		if( !$is_logged_in === TRUE ){
			redirect('admin/login');
		}
	}

}